#include "Input.h"
#include "../../DebugUtility/UtilDebug.h"

#include "../DeviceInput.h"

Input::Input(){}

bool Input::getKeyState(KeyCode::Code  key) const{
	return DeviceInput::getInst()->isKeyState(key);
	//return gsGetKeyState(key) == GS_TRUE;
}

bool Input::getKeyTrigger(KeyCode::Code  key) const{
	return DeviceInput::getInst()->isKeyTrigger(key);
	//return gsGetKeyTrigger(key) == GS_TRUE;
}

bool Input::getJoyState(int joyNo, JoyCode::Code state)const
{
	return DeviceInput::getInst()->isJoyState(state, joyNo);
	//return gsGetJoyState(joyNo, (GJOYSTATE)state) == GS_TRUE;
}

bool Input::getJoyTrigger(int joyNo, JoyCode::Code state)const
{
	return DeviceInput::getInst()->isJoyTrigger(state, joyNo);
	//return gsGetJoyTrigger(joyNo, (GJOYSTATE)state) == GS_TRUE;
}

void Input::getJoyAxis(int joyNo, int* x, int* y, int* z)
{
	DeviceInput::getInst()->getJoyAxis(joyNo, x, y, z);
}